<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>系统管理中心</title>
    <link href="__CSS_ADMIN_PATH__reset.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__zh-cn-system.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles1.css" title="styles1" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles2.css" title="styles2" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles3.css" title="styles3" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles4.css" title="styles4" media="screen" />

    <link href="__CSS_ADMIN_PATH__dialog.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__table_form.css" rel="stylesheet" type="text/css">
    <script src="__JS_PATH__jquery-1.8.3.js" type="text/javascript"></script>
    <script src="__JS_PATH__jquery-ui.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="__JS_PATH__dialog.js"></script>

    <script src="__JS_ADMIN_PATH__wysiwyg.js" type="text/javascript"></script>
    <script src="__JS_ADMIN_PATH__functions.js" type="text/javascript"></script>
    <!--<script src="/public/index/js/lang.js" type="text/javascript"></script>-->

    <script src="__JS_PATH__Validform_v5.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        var isIE = (document.all && window.ActiveXObject && !window.opera) ? true : false;
        function Dd(i) {return document.getElementById(i);}
        function Eh(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'hidden';}
            }
        }
        function Es(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'visible';}
            }
        }
    </script>
</head>
<body>


<script src="__JS__/checkadmin.js" type="text/javascript"></script>
<div class="pad-10">
  <div class="content-menu ib-a blue line-x">修改角色</div>
  <div class="col-auto">
    <div class="col-1">
      <div class="content pad-6">
		 	
			<form method="post" action="__APP_PATH__index.php?g=Admin&m=Role&a=edit" ><!-- Form -->
          <table width="100%" cellspacing="0" class="table_form">
				  
<tbody>	
<tr>
						<th>角色名称: </th><td>
 						<input class="mediumfield" id="rolename"  name="rolename" type="text" value="<?php echo ($rolemessage['name']); ?>" onBlur="checkrolename()"/> 
 						<span class="field_desc" id="rolenamemsg" >请输入角色名称</span>
						<input type="hidden" name="rolenamestau" id="rolenamestau"  value="failed"/>
					</td>
</tr>
					<tr>
						<th>角色描述: </th><td>
 						<textarea name="roledesc" id="roledesc" cols="30" rows="3"><?php echo ($rolemessage['remark']); ?></textarea>
 						<span class="field_desc" id="roledescmsg">请填写角色描述</span>
						<input type="hidden" name="roledescstau" id="roledescstau"  value="failed"/>
				</td>
</tr>
				  	<tr>
						<th>是否启用:</th><td>
						<?php if($rolemessage['status']) { ?>
						<input name="rolestatus" type="radio" value="1" checked/>是 
 						<input name="rolestatus" type="radio" value="0" />否 
 						<?php
 } else { ?>
 						<input name="rolestatus" type="radio" value="1" />是 
 						<input name="rolestatus" type="radio" value="0" checked />否 
						<?php } ?>
 					<input type="hidden" name="isrolestau" id="isrolestau"  value="failed"/>
					</td>
</tr>                 
                     <tr>
					 <td></td>
					 <td>
					<input type="hidden" name="id" value="<?php echo ($rolemessage['id']); ?>"/>
				 
						<input class="button" name="dosubmit" type="submit" value="提交" />
					</td>
</tr>               
			</tbody>
</table>
</form>
      </div>
    </div>
  </div>
</div>